/********************************************************************
  Copyright by PCI, 2002-10-08
  File Name: db_ppm_state_template_rela.cxx
  Created Date: 2002-10-08 
  Author: Machine
  Version: 1.0 
  Last Version Date: 
  Version Date:
*******************************************************************/
/********************************************************************
  Copyright by PCI, 2002-10-08
  Class Name: CTable_PPM_STATE_TEMPLATE_RELA
  Created Date: 2002-10-08 
  Author: Machine
  Defined File: db_ppm_state_template_rela.hxx
  Last Version Date: 
  Version Date:
*******************************************************************/
#include "table_ppm.h"

CTable_PPM_STATE_TEMPLATE_RELA::CTable_PPM_STATE_TEMPLATE_RELA( )
 :NPCRecordSet( )
{
  setTableName( "PPM_STATE_TEMPLATE_RELA" );
  prepareTable();
  prepareQuery();
 
  ID.setField( "ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( ID );
  makeKeyItem( ID ); 
  FLOW_ID.setField( "FLOW_ID", DATA_CHAR, 10, 0 );
  makeTableItem( FLOW_ID );
  STATE_ID.setField( "STATE_ID", DATA_CHAR, 20, 0 );
  makeTableItem( STATE_ID );
  TEMP_ID.setField( "TEMP_ID", DATA_CHAR, 20, 0 );
  makeTableItem( TEMP_ID );
	PARENT_ID.setField( "PARENT_ID", DATA_CHAR, 20, 0 );
  makeTableItem( PARENT_ID );
}


CTable_PPM_STATE_TEMPLATE_RELA::CTable_PPM_STATE_TEMPLATE_RELA( NPConnection& pcldb )
 :NPCRecordSet( pcldb )
{
  setTableName( "PPM_STATE_TEMPLATE_RELA" );
  prepareTable();
  prepareQuery();
 
  ID.setField( "ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( ID );
  makeKeyItem( ID ); 
  FLOW_ID.setField( "FLOW_ID", DATA_CHAR, 10, 0 );
  makeTableItem( FLOW_ID );
  STATE_ID.setField( "STATE_ID", DATA_CHAR, 20, 0 );
  makeTableItem( STATE_ID );
  TEMP_ID.setField( "TEMP_ID", DATA_CHAR, 20, 0 );
  makeTableItem( TEMP_ID );
	PARENT_ID.setField( "PARENT_ID", DATA_CHAR, 20, 0 );
  makeTableItem( PARENT_ID );
}

CTable_PPM_STATE_TEMPLATE_RELA::~CTable_PPM_STATE_TEMPLATE_RELA( )
{
    close();
}

